Package com.cisco.pt.ipc.sim.pdu
Interface IPHeader
- All Known Implementing Classes:
IPHeaderImpl
-
Method Summary
Modifier and TypeMethodDescriptiongetFlags()intintgetTtl()voidsetChecksum(Short checksum) voidsetDstAddress(IPAddress dstAddress) voidvoidsetFragmentOffset(Short fragmentOffset) voidsetHeaderLength(Byte headerLength) voidsetIdentification(Short identification) voidsetOptions(int options) voidsetPadding(int padding) voidsetProtocol(Short protocol) voidsetSrcAddress(IPAddress srcAddress) voidsetTotalLength(Short totalLength) voidvoidsetTypeOfService(Byte typeOfService) voidsetVersion(Byte version) Methods inherited from interface com.cisco.pt.ipc.sim.pdu.Header
getPayload, setPayloadMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
encodeTypeAndPayload, getFieldValue, getOrderedFieldNames, pduRead
-
Method Details
-
getVersion
Byte getVersion()- Returns:
- Byte Returns a Byte
-
setVersion
- Parameters:
version- Takes in a parameter of version
-
getHeaderLength
Byte getHeaderLength()- Returns:
- Byte Returns a Byte
-
setHeaderLength
- Parameters:
headerLength- Takes in a parameter of headerLength
-
getTypeOfService
Byte getTypeOfService()- Returns:
- Byte Returns a Byte
-
setTypeOfService
- Parameters:
typeOfService- Takes in a parameter of typeOfService
-
getTotalLength
Short getTotalLength()- Returns:
- Short Returns a Short
-
setTotalLength
- Parameters:
totalLength- Takes in a parameter of totalLength
-
getIdentification
Short getIdentification()- Returns:
- Short Returns a Short
-
setIdentification
- Parameters:
identification- Takes in a parameter of identification
-
getFlags
Byte getFlags()- Returns:
- Byte Returns a Byte
-
setFlags
- Parameters:
flags- Takes in a parameter of flags
-
getFragmentOffset
Short getFragmentOffset()- Returns:
- Short Returns a Short
-
setFragmentOffset
- Parameters:
fragmentOffset- Takes in a parameter of fragmentOffset
-
getTtl
Short getTtl()- Returns:
- Short Returns a Short
-
setTtl
- Parameters:
ttl- Takes in a parameter of ttl
-
getProtocol
Short getProtocol()- Returns:
- Short Returns a Short
-
setProtocol
- Parameters:
protocol- Takes in a parameter of protocol
-
getChecksum
Short getChecksum()- Returns:
- Short Returns a Short
-
setChecksum
- Parameters:
checksum- Takes in a parameter of checksum
-
getSrcAddress
IPAddress getSrcAddress()- Returns:
- IPAddress Returns a IPAddress
-
setSrcAddress
- Parameters:
srcAddress- Takes in a parameter of srcAddress
-
getDstAddress
IPAddress getDstAddress()- Returns:
- IPAddress Returns a IPAddress
-
setDstAddress
- Parameters:
dstAddress- Takes in a parameter of dstAddress
-
getOptions
int getOptions()- Returns:
- int Returns a int
-
setOptions
void setOptions(int options) - Parameters:
options- Takes in a parameter of options
-
getPadding
int getPadding()- Returns:
- int Returns a int
-
setPadding
void setPadding(int padding) - Parameters:
padding- Takes in a parameter of padding
-